<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	pageContext.setAttribute("basePath", basePath);
%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>新闻编辑</title>
<link rel="stylesheet"
	href="${basePath }/admin/bower_components/bootstrap/dist/css/bootstrap.min.css">
</head>
<body>
	<form class="form-horizontal" action="${basePath }admin/editNews.action"
		method="post">
		
			<input type="hidden" name="id" value="${news.id }">
		
		<div class="form-group">
			<label for="InputF_ID" class="col-sm-2 control-label">父id</label>
			<div class="col-sm-10">
				<input type="text" class="form-control" value="${news.wor_id }"
					id="InputF_ID" name="wor_id" placeholder="父id">
			</div>
		</div>
		
		<div class="form-group">
			<label for="InputTitle" class="col-sm-2 control-label">新闻标题</label>
			<div class="col-sm-10">
				<input type="text" class="form-control" value="${news.title }"
					id="InputTitle" name="title" placeholder="新闻标题">
			</div>
		</div>
		<div class="form-group">
			<label for="InputContent" class="col-sm-2 control-label">新闻内容</label>
			<div class="col-sm-10">
				<input type="text" class="form-control" value="${news.content }"
					id="InputContent" name="content" placeholder="新闻内容">
			</div>
		</div>
		<div class="form-group">
			<label for="InputUrl" class="col-sm-2 control-label">链接地址</label>
			<div class="col-sm-10">
				<input type="text" class="form-control" value="${news.url }"
					id="InputUrl" name="url" placeholder="链接地址">
			</div>
		</div>
		<div class="form-group">
			<label for="InputDetialUrl" class="col-sm-2 control-label">详细链接地址</label>
			<div class="col-sm-10">
				<input type="text" class="form-control" value="${news.detialUrl }"
					id="InputDetialUrl" name="detialUrl" placeholder="详细链接地址">
			</div>
		</div>
		<div class="form-group">
			<label for="InputTime" class="col-sm-2 control-label">时间</label>
			<div class="col-sm-10">
				<input type="text" class="form-control" value="${news.time }"
					id="InputTime" name="time" placeholder="时间">
			</div>
		</div>
		
		<div class="form-group">
			<div class="col-sm-offset-2 col-sm-10">
				<button type="submit" class="btn btn-default">提交</button>
			</div>
		</div>
	</form>

</body>
</html>